﻿<%@ Page Title="Đổi mật khẩu" Theme="WebMaster" Language="C#" MasterPageFile="~/WebMaster/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="WebMaster_Administrator_Membership_Default" %>

<%@ Register src="../../../ControlUser/uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="PageContentPlaceHolder" Runat="Server">
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />

    <script type="text/javascript">
     function pageLoad() {
      $("#<%= ChangePasswordPushButton.ClientID %>").click(function() { 
      if ($("#<%= NewPassword.ClientID %>")==$("#<%= ConfirmNewPassword.ClientID %>"))
      {
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } });
        } 
        }); 
        
        
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <fieldset>
    <legend>Đổi mật khẩu</legend>
    <div class="fm-req">
      <label for="CurrentPassword">Mật mã cũ :</label>
                        <asp:TextBox ID="CurrentPassword" TextMode="Password" runat="server" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="valRequireCurrentPassword" runat="server" ControlToValidate="CurrentPassword" Display="None" ErrorMessage="Nhập mật mã cũ"></asp:RequiredFieldValidator>
                         <cc1:ValidatorCalloutExtender TargetControlID="valRequireCurrentPassword" ID="ValidatorCalloutExtender1" runat="server" Enabled="True">
                        </cc1:ValidatorCalloutExtender>
     </div>
     <div class="fm-req">
      <label for="NewPassword">Mật mã mới :</label>
       <asp:TextBox ID="NewPassword" TextMode="Password" runat="server" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="valRequireNewPassword" runat="server" ControlToValidate="NewPassword" Display="None" ErrorMessage="Nhập mật mã mới"></asp:RequiredFieldValidator>
                         <cc1:ValidatorCalloutExtender TargetControlID="valRequireNewPassword" ID="ValidatorCalloutExtender2" runat="server" Enabled="True">
                        </cc1:ValidatorCalloutExtender>
      </div>
      <div class="fm-req">
      <label for="NewPassword">Nhập lại mật mã :</label>
      <asp:TextBox ID="ConfirmNewPassword" TextMode="Password" runat="server" Width="150px"></asp:TextBox>
                         <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ConfirmNewPassword" ControlToCompare="NewPassword" Display="None"  ErrorMessage="Mật khẩu không khớp" />
                        <cc1:ValidatorCalloutExtender TargetControlID="CompareValidator1" ID="ValidatorCalloutExtender3" runat="server" Enabled="True">
                        </cc1:ValidatorCalloutExtender>
      </div>
     </fieldset>
     <div>
                    <asp:Button ID="ChangePasswordPushButton" runat="server"  Text="Đổi mật mã" onclick="ChangePasswordPushButton_Click"  />
                    
       </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc1:uscMsgBox ID="uscMsgBox1" runat="server" />
</asp:Content>

